home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000257_fdc@sesame.cc.columbia.edu_Thu Sep 4 14:48:13 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
54 lines
Article: 14498 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news-not-for-mail
From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: missing bytes...
Date: 4 Sep 2003 14:48:09 -0400
Organization: Columbia University
Lines: 37
Message-ID: <bj81d9$bai$1@sesame.cc.columbia.edu>
References: <cf6cc183.0309031713.73a00933@posting.google.com> <bj7hfa$1ho$1@sesame.cc.columbia.edu> <cf6cc183.0309040955.6efec36f@posting.google.com>
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1062701290 16740 128.59.59.56 (4 Sep 2003 18:48:10 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 4 Sep 2003 18:48:10 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14498
In article <cf6cc183.0309040955.6efec36f@posting.google.com>,
icurmt <icurmtdude@yahoo.com> wrote:
: I tried it and it gave the same result as before. The NUL chars were
: ignored.
:
How do you know it didn't work? What kind of connection is it? Where
are the NUL characters coming from?
When I do it here, it works:
fopen /write \%c foo
if fail stop
while true {
input 5
if fail break
fwrite /char \%c \v(inchar)
}
fclose \%c
The "foo" file has NUL characters in it, just where they are supposed to
be, none missing.
: However, something I dont understand here is that session log
: which is set as "set session-log binary" doesn't have the NUL
: character in it as well. Well, not sure, but possibly cause it logs
: the same (\v(input) buffer.
:
SET SESSION-LOG BINARY tells Kermit to record every incoming character,
including NULs, and it does. The session log is separate from \v(input).
Incoming characters go straight to a file, not to a C string, so NULs
are not a problem. However, by default (i.e. when SESSION-LOG is set to
TEXT), they are discarded, as are certain other control characters,
depending on the text-file format of the computer where Kermit is running
(so, for example, carriage returns are discarded by C-Kermit but not by
K-95).
- Frank